﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
//using BTGISWASECO.BusinessEntities;

/// <summary>
/// Summary description for DongHoConEntities
/// </summary>
namespace BTGISWASECO.BusinessEntities
{
    public class DongHoConEntities
    {
        #region khai bao thuoc tinh
        private int _objectID;
        private string _IDMaDongHo;
        private string _IDDMA;
        private int _TieuChuan;
        private string _TieuChuanText;
        private int _NamSanXuat;
        private int _NhaSanXuat;
        private string _NhaSanXuatText;
        private int _NuocSanXuat;
        private string _NuocSanXuatText;
        private int _SoThanDongHo;
        private int _LoaiCTDH;
        private string _LoaiCTDHText;
        private int _LoaiCCVH;
        private string _LoaiCCVHText;
        private int _LoaiMatSo;
        private string _LoaiMatSoText;
        private DateTime _NgayLapDat;
        private string _MoTaViTri;
        private int _TinhTrang;
        private string _TinhTrangText;
        private string _DonViDo;
        private double _LuuLuongNN;
        private double _LuuLuongLN;
        private double _ApLuc;
        private int _SoLanThay;
        private int _DonViTC;
        private string _DonViTCText;
        private int _DonViTK;
        private string _DonViTKText;
        private double _DoChinhXac;
        private double _CapChinhXac;
        private string _Kieu;
        private int _DonViQL;
        private string _DonViQLText;
        private string _SoNha;
        private string _MaDuong;
        private string _MaPhuong;
        private string _MaQuan;
        private string _CoDongHo;
        private string _CoDongHoText;
        private string _SoHopDong;
        private string _DBDongHoNuoc;
        private string _TenThueBao;
        private int _MucDichSuDung;
        private string _DinhMucSuDung;
        private int _SoNguoiSuDung;       
        private string _NhaKiemDinh;
        private string _MaSoChi;
        private string _NguoiCNCuoi;
        private DateTime _NgayCNCuoi;
        private string _GhiChu;


        public string CoDongHoText
        {
            get { return _CoDongHoText; }
            set { _CoDongHoText = value; }
        }

        public int SoNguoiSuDung
        {
            get { return _SoNguoiSuDung; }
            set { _SoNguoiSuDung = value; }
        }

        public string MaSoChi
        {
            get { return _MaSoChi; }
            set { _MaSoChi = value; }
        }

        public string NhaKiemDinh
        {
            get { return _NhaKiemDinh; }
            set { _NhaKiemDinh = value; }
        }
        
        public string DinhMucSuDung
        {
            get { return _DinhMucSuDung; }
            set { _DinhMucSuDung = value; }
        }
        
        public int MucDichSuDung
        {
            get { return _MucDichSuDung; }
            set { _MucDichSuDung = value; }
        }

        public string SoNha
        {
            get { return _SoNha; }
            set { _SoNha = value; }
        }

        public string MaDuong
        {
            get { return _MaDuong; }
            set { _MaDuong = value; }
        }

        public string MaQuan
        {
            get { return _MaQuan; }
            set { _MaQuan = value; }
        }

        public string MaPhuong
        {
            get { return _MaPhuong; }
            set { _MaPhuong = value; }
        }

        public DateTime NgayLapDat
        {
            get { return _NgayLapDat; }
            set { _NgayLapDat = value; }
        }

        public string DonViQLText
        {
            get { return _DonViQLText; }
            set { _DonViQLText = value; }
        }
        
        public int DonViQL
        {
            get { return _DonViQL; }
            set { _DonViQL = value; }
        }

        public string DonViTCText
        {
            get { return _DonViTCText; }
            set { _DonViTCText = value; }
        }

        public int DonViTC
        {
            get { return _DonViTC; }
            set { _DonViTC = value; }
        }

        public int NamSanXuat
        {
            get { return _NamSanXuat; }
            set { _NamSanXuat = value; }
        }
        
        public string DonViDo
        {
            get { return _DonViDo; }
            set { _DonViDo = value; }
        }

        public int SoLanThay
        {
            get { return _SoLanThay; }
            set { _SoLanThay = value; }
        }

        public string SoHopDong
        {
            get { return _SoHopDong; }
            set { _SoHopDong = value; }
        }

        public string NhaSanXuatText
        {
            get { return _NhaSanXuatText; }
            set { _NhaSanXuatText = value; }
        }

        public string DBDongHoNuoc
        {
            get { return _DBDongHoNuoc; }
            set { _DBDongHoNuoc = value; }
        }

        public string TenThueBao
        {
            get { return _TenThueBao; }
            set { _TenThueBao = value; }
        }

        public string DonViTKText
        {
            get { return _DonViTKText; }
            set { _DonViTKText = value; }
        }

        public string Kieu
        {
            get { return _Kieu; }
            set { _Kieu = value; }
        }

        public string TinhTrangText
        {
            get { return _TinhTrangText; }
            set { _TinhTrangText = value; }
        }

        public string NuocSanXuatText
        {
            get { return _NuocSanXuatText; }
            set { _NuocSanXuatText = value; }
        }
        
        public string TieuChuanText
        {
            get { return _TieuChuanText; }
            set { _TieuChuanText = value; }
        }

        public string LoaiCCVHText
        {
            get { return _LoaiCCVHText; }
            set { _LoaiCCVHText = value; }
        }

        public string LoaiMatSoText
        {
            get { return _LoaiMatSoText; }
            set { _LoaiMatSoText = value; }
        }

        public int LoaiCTDH
        {
            get { return _LoaiCTDH; }
            set { _LoaiCTDH = value; }
        }

        public string LoaiCTDHText
        {
            get { return _LoaiCTDHText; }
            set { _LoaiCTDHText = value; }
        }

        public int NhaSanXuat
        {
            get { return _NhaSanXuat; }
            set { _NhaSanXuat = value; }
        }
        
        public string GhiChu
        {
            get { return _GhiChu; }
            set { _GhiChu = value; }
        }

        public double CapChinhXac
        {
            get { return _CapChinhXac; }
            set { _CapChinhXac = value; }
        }

        public string NguoiCNCuoi
        {
            get { return _NguoiCNCuoi; }
            set { _NguoiCNCuoi = value; }
        }
        
        public DateTime NgayCNCuoi
        {
            get { return _NgayCNCuoi; }
            set { _NgayCNCuoi = value; }
        }
        
        public int DonViTK
        {
            get { return _DonViTK; }
            set { _DonViTK = value; }
        }
        
        public int LoaiMatSo
        {
            get { return _LoaiMatSo; }
            set { _LoaiMatSo = value; }
        }

        public string CoDongHo
        {
            get { return _CoDongHo; }
            set { _CoDongHo = value; }
        }
        
        public int TinhTrang
        {
            get { return _TinhTrang; }
            set { _TinhTrang = value; }
        }

        public double DoChinhXac
        {
            get { return _DoChinhXac; }
            set { _DoChinhXac = value; }
        }
        
        public string MoTaViTri
        {
            get { return _MoTaViTri; }
            set { _MoTaViTri = value; }
        }

        public int SoThanDongHo
        {
            get { return _SoThanDongHo; }
            set { _SoThanDongHo = value; }
        }

        public double ApLuc
        {
            get { return _ApLuc; }
            set { _ApLuc = value; }
        }
        
        public double LuuLuongLN
        {
            get { return _LuuLuongLN; }
            set { _LuuLuongLN = value; }
        }

        public int NuocSanXuat
        {
            get { return _NuocSanXuat; }
            set { _NuocSanXuat = value; }
        }

        public int TieuChuan
        {
            get { return _TieuChuan; }
            set { _TieuChuan = value; }
        }

        public int LoaiCCVH
        {
            get { return _LoaiCCVH; }
            set { _LoaiCCVH = value; }
        }
        
        public int OBJECTID
        {
            get { return _objectID; }
            set { _objectID = value; }
        }

        public string IDMaDongHo
        {
            get { return _IDMaDongHo; }
            set { _IDMaDongHo = value; }
        }

        public string IDDMA
        {
            get { return _IDDMA; }
            set { _IDDMA = value; }
        }

        public double LuuLuongNN
        {
            get { return _LuuLuongNN; }
            set { _LuuLuongNN = value; }
        }

        # endregion khai bao

        #region phuong thuc

        public DongHoConEntities()
        {

        }

        public DongHoConEntities(string IDMaDongHo, string IDDMA, int TieuChuan, int NamSanXuat,
                                int NhaSanXuat, int NuocSanXuat, int SoThanDongHo, int LoaiCTDH,
                                int LoaiCCVH, int LoaiMatSo, DateTime NgayLapDat, string MoTaViTri,
                                int TinhTrang, string DonViDo, double LuuLuongNN, double LuuLuongLN,
                                double ApLuc, int SoLanThay, int DonViTC, int DonViTK,
                                double DoChinhXac, double CapChinhXac, string Kieu, int DonViQL,
                                string SoNha, string MaDuong, string MaPhuong, string MaQuan,
                                string CoDongHo, string SoHopDong, string DBDongHoNuoc, string TenThueBao,
                                int MucDichSuDung, string DinhMucSuDung,int SoNguoiSuDung, string NhaKiemDinh, string MaSoChi,
                                string NguoiCNCuoi, DateTime NgayCNCuoi, string GhiChu)
        {
            this._IDMaDongHo = IDMaDongHo;
            this._IDDMA = IDDMA;
            this._TieuChuan = TieuChuan;
            this._NamSanXuat = NamSanXuat;
            this._NhaSanXuat = NhaSanXuat;
            this._NuocSanXuat = NuocSanXuat;
            this._SoThanDongHo = SoThanDongHo;
            this._LoaiCTDH = LoaiCTDH;
            this._LoaiCCVH = LoaiCCVH;
            this._LoaiMatSo = LoaiMatSo;
            this._NgayLapDat = NgayLapDat;
            this._MoTaViTri = MoTaViTri;
            this._TinhTrang = TinhTrang;
            this._DonViDo = DonViDo;
            this._LuuLuongNN = LuuLuongNN;
            this._LuuLuongLN = LuuLuongLN;
            this._ApLuc = ApLuc;
            this._SoLanThay = SoLanThay;
            this._DonViTC = DonViTC;
            this._DonViTK = DonViTK;
            this._DoChinhXac = DoChinhXac;
            this._CapChinhXac = CapChinhXac;
            this._Kieu = Kieu;
            this._DonViQL = DonViQL;
            this._SoNha = SoNha;
            this._MaDuong = MaDuong;
            this._MaPhuong = MaPhuong;
            this._MaQuan = MaQuan;
            this._CoDongHo = CoDongHo;
            this._SoHopDong = SoHopDong;
            this._DBDongHoNuoc = DBDongHoNuoc;//
            this._TenThueBao = TenThueBao;
            this._MucDichSuDung = MucDichSuDung;
            this._DinhMucSuDung = DinhMucSuDung;
            this._SoNguoiSuDung = SoNguoiSuDung;
            this._NhaKiemDinh = NhaKiemDinh;
            this._MaSoChi = MaSoChi;
            this._NguoiCNCuoi = NguoiCNCuoi;
            this._NgayCNCuoi = NgayCNCuoi;
            this._GhiChu = GhiChu;

        }
        public DongHoConEntities(int OBJECTID,string IDMaDongHo, string IDDMA, int TieuChuan, int NamSanXuat,
                                int NhaSanXuat, int NuocSanXuat, int SoThanDongHo, int LoaiCTDH,
                                int LoaiCCVH, int LoaiMatSo, DateTime NgayLapDat, string MoTaViTri,
                                int TinhTrang, string DonViDo, double LuuLuongNN, double LuuLuongLN,
                                double ApLuc, int SoLanThay, int DonViTC, int DonViTK,
                                double DoChinhXac, double CapChinhXac, string Kieu, int DonViQL,
                                string SoNha, string MaDuong, string MaPhuong, string MaQuan,
                                string CoDongHo, string SoHopDong, string DBDongHoNuoc, string TenThueBao,
                                int MucDichSuDung, string DinhMucSuDung, int SoNguoiSuDung, string NhaKiemDinh, string MaSoChi,
                                string NguoiCNCuoi, DateTime NgayCNCuoi, string GhiChu)
        {
            this._objectID = OBJECTID;
            this._IDMaDongHo = IDMaDongHo;
            this._IDDMA = IDDMA;
            this._TieuChuan = TieuChuan;
            this._NamSanXuat = NamSanXuat;
            this._NhaSanXuat = NhaSanXuat;
            this._NuocSanXuat = NuocSanXuat;
            this._SoThanDongHo = SoThanDongHo;
            this._LoaiCTDH = LoaiCTDH;
            this._LoaiCCVH = LoaiCCVH;
            this._LoaiMatSo = LoaiMatSo;
            this._NgayLapDat = NgayLapDat;
            this._MoTaViTri = MoTaViTri;
            this._TinhTrang = TinhTrang;
            this._DonViDo = DonViDo;
            this._LuuLuongNN = LuuLuongNN;
            this._LuuLuongLN = LuuLuongLN;
            this._ApLuc = ApLuc;
            this._SoLanThay = SoLanThay;
            this._DonViTC = DonViTC;
            this._DonViTK = DonViTK;
            this._DoChinhXac = DoChinhXac;
            this._CapChinhXac = CapChinhXac;
            this._Kieu = Kieu;
            this._DonViQL = DonViQL;
            this._SoNha = SoNha;
            this._MaDuong = MaDuong;
            this._MaPhuong = MaPhuong;
            this._MaQuan = MaQuan;
            this._CoDongHo = CoDongHo;
            this._SoHopDong = SoHopDong;
            this._DBDongHoNuoc = DBDongHoNuoc;//
            this._TenThueBao = TenThueBao;
            this._MucDichSuDung = MucDichSuDung;
            this._DinhMucSuDung = DinhMucSuDung;
            this._SoNguoiSuDung = SoNguoiSuDung;
            this._NhaKiemDinh = NhaKiemDinh;
            this._MaSoChi = MaSoChi;
            this._NguoiCNCuoi = NguoiCNCuoi;
            this._NgayCNCuoi = NgayCNCuoi;
            this._GhiChu = GhiChu;
        }

        public DongHoConEntities(DataRow row)
        {
            this._objectID = Convert.ToInt32(row["OBJECTID"]);
            this._IDMaDongHo = row["IDMaDongHo "].ToString();
            this._IDDMA = row["IDCapNuoc"].ToString();
            this._TieuChuanText = row["TieuChuan"].ToString();
            this._NamSanXuat = Convert.ToInt32(row["NamSanXuat"]);
            this._NhaSanXuatText = row["NhaSanXuat"].ToString();
            this._NuocSanXuatText = row["NuocSanXuat"].ToString();
            this._SoThanDongHo = Convert.ToInt32(row["SoThanDongHo"]);
            this._LoaiCTDHText = row["LoaiCauTao"].ToString();
            this._LoaiCCVHText = row["LCCauVanHanh"].ToString();
            this._LoaiMatSoText = row["LoaiMatSo"].ToString();
            this._NgayLapDat = DateTime.Parse(row["NgayLapDat"].ToString());
            this._MoTaViTri = row["ViTriLapDat"].ToString();
            this._TinhTrangText = row["TinhTrang"].ToString();
            this._DonViDo = row["DonViDo"].ToString();
            this._LuuLuongLN = Convert.ToDouble(row["LLDoLonNhat"]);
            this._LuuLuongNN = Convert.ToDouble(row["LLDoNhoNhat"]);
            if (row["ApLuc"].ToString() != "Null")
                this._ApLuc = Convert.ToDouble(row["ApLuc"]);
            if (row["SoLanThay"].ToString() != "Null")
                this._SoLanThay = Convert.ToInt32(row["SoLanThay"]);
            this._DonViTCText = row["DonViThiCong"].ToString();
            this._DonViTKText = row["DonViThietKe"].ToString();
            if (row["DoChinhXac"].ToString() != "Null")
                this._DoChinhXac = Convert.ToDouble(row["DoChinhXac"]);
            if (row["CapChinhXac"].ToString() != "Null")
                this._CapChinhXac = Convert.ToDouble(row["CapChinhXac"]);
            this._Kieu = row["Kieu"].ToString();
            this._DonViQLText = row["DonViQuanly"].ToString();
            this._SoNha = row["SoNha"].ToString();
            this._MaDuong = row["MaDuong"].ToString();
            this._MaPhuong = row["MaPhuong"].ToString();
            this._MaQuan = row["MaQuan"].ToString();
            this._CoDongHoText = row["CoDongHo"].ToString();
            this._SoHopDong = row["SoHopDong"].ToString();
            this._DBDongHoNuoc = row["DBDongHoNuoc "].ToString();
            this._TenThueBao = row["TenThueBao"].ToString();
            if (row["MucDichSuDung"].ToString() != "Null")
                this._MucDichSuDung = Convert.ToInt32(row["MucDichSuDung"]);
            this._DinhMucSuDung = row["DinhMucSuDung"].ToString();
            if (row["SoNguoiSuDung"].ToString() != "Null")
                this._SoNguoiSuDung = Convert.ToInt32(row["SoNguoiSuDung"]);
            this._NhaKiemDinh = row["NhaKiemDinh"].ToString();
            this._MaSoChi = row["MaSoChi"].ToString();
            this._NguoiCNCuoi = row["NguoiCNCuoi"].ToString();
            if (row["NgayCNCuoi"].ToString() != "Null")
                this._NgayCNCuoi = Convert.ToDateTime(row["NgayCNCuoi"]);
            this._GhiChu = row["GhiChu"].ToString();
        }


        #endregion phuong thuc
    }
}